﻿using System;

namespace NoORM.Core.Contract
{
    /// <summary>
    /// API输出的Json数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiData<T>
    {
        /// <summary>
        /// 成功与否
        /// </summary>
        public bool Success { get; set; } = true;

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 服务器接收时间
        /// </summary>
        public DateTime ServerReceiveTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 服务器处理完并开始发送数据的时间
        /// </summary>
        public DateTime ServerSendTime { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }
}
